package com.zhc.dejingapi.pojo.erp;

import com.zhc.dejingapi.entity.QingMoorderroutingEntity;
import lombok.Data;
import org.apache.commons.beanutils.BeanUtils;

import java.math.BigDecimal;

@Data
public class BomworkRoutingUpdModel {

    //@TableId(value = "detail_id", type = IdType.AUTO)
    private Long detailId;

    //@TableField("main_id")
    private Long mainId;

    //@TableField("qingApplyId")
    private Long qingApplyId;

    //@TableField("opSeq")
    private Integer opSeq;

    //@TableField("opCode")
    private String opCode;

    //@TableField("opName")
    private String opName;

    //@TableField("opRefer")
    private Long opRefer;

    //@TableField("opQty")
    private BigDecimal opQty;

    //@TableField("opRatio")
    private BigDecimal opRatio;

    //@TableField("motaskCode")
    private String motaskCode;

    //@TableField("proBatchCode")
    private String proBatchCode;

    //@TableField("isFirstFlag")
    private String isFirstFlag;

    //@TableField("isLastFlag")
    private String isLastFlag;

    //@TableField("detailRowStatus")
    private String detailRowStatus;

    //@TableField("randcodes")
    private String randcodes;

    //@TableField("detailmemo")
    private String detailmemo;

    //@TableField("planStartTime")
    private String planStartTime;

    //@TableField("planEndTime")
    private String planEndTime;

    //@TableField("detailEqCode")
    private String detailEqCode;

    //@TableField("detailMoldCode")
    private String detailMoldCode;

    //@TableField("finishQty")
    private Integer finishQty;

    //@TableField("leaveQty")
    private Integer leaveQty;

    //@TableField("machineCode")
    private String machineCode;

    //@TableField("moldCode")
    private String moldCode;

    public void Copy(QingMoorderroutingEntity entity){
        try{
            BeanUtils.copyProperties(this,entity);
        }
        catch (Exception e){
            e.printStackTrace();
        }
    }
}
